package reflect;

import java.util.Arrays;

public class ArgsDemo {
    public static void main(String[] args) {
        dosome("a");
        dosome("a","a");
        dosome("a","a","a");
        dosome("a","a","a","s","as");
    }
    //变长参数在一个方法中必须是最后一个参数
    public static void dosome(String...s){
        System.out.println(s.length);
        System.out.println(Arrays.toString(s));
    }
}
